#ifndef __public_h
#define __public_h

#include "peripheral.h"



#if en_di
#if PS1101
#include "PS1101.h"
#include "PS1101_DEF.h"
#endif
#if AD18F128
#include "AD18F128.h"
#endif
#endif
#if zhong_wei
#include "sc.h"
#endif


#ifndef uint8_t
#define uint8_t		unsigned char 
#define uint16_t 	unsigned int  
#define uint32_t 	unsigned long 
#endif

#ifndef u8
#define u8		unsigned char 
#define u16 	unsigned int  
#define u32 	unsigned long 
#endif

#ifndef s8
#define s8		signed char 
#define s16 	signed int  
#define s32 	signed long 
#endif

#ifndef vu8
#define vu8		volatile unsigned char 
#define vu16 	volatile unsigned int  
#define vu32 	volatile unsigned long 
#endif




#include "peripheral.h"
#include  "task.h"
#include  "cb.h"
#include  "chrg.h"
#include  "ui.h"
#include  "pwm.h"
#include  "si_mic.h"
#include  "sleep.h"
#include  "tim.h"
#include  "bat.h"
#include  "key.h"
// #include "stdio.h"
#define  putch   uart_txc

#ifndef _XTAL_FREQ
#define _XTAL_FREQ 16000000			//16MHz
#endif

#endif